import requests
 
# 前置：使用Rquests 获取URL的response
url = "http://www.techlabplt.com:8085/searchNew?categoryId=29&
orderBy=releaseDate&keyword="
# 设置header，并带入到request请求中
header = {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
                  " AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
}
resp = requests.get(url, headers=header)
print(resp)
resp.encoding = 'UTF-8'
print(resp.text)
